package com.excel.excelUtil;

import com.excel.excelUtil.dto.LawFirmInfo;
import com.excel.excelUtil.dto.LawFirmUser;

import java.util.List;

/**
 * @author zhuangqi
 * @@date 2017/3/17.
 */
public class ReadExcel2 {

    public static void main(String[] args) {

        try {
            LawFirmInfo lawFirmInfo = ReadExcelUtil.excel2MapByRow(LawFirmInfo.class,"E:/test1.xls","基本信息","律所主任信息");
            List<LawFirmUser> lawFirmUsers = ReadExcelUtil.excel2MapByColumn(LawFirmUser.class,"E:/test1.xls","其他人员",null);
            System.out.println(lawFirmInfo.getLawFirmName());
            System.out.println(lawFirmUsers.size());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
